package com.zut.controller;

import com.zut.service.IVerificationCodeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;


@RestController
@RequestMapping("/code")
public class VerificationCodeController {
    @Resource
    private IVerificationCodeService iVerificationCodeService;

    /*得到验证码*/
    @GetMapping
    public Map<String, Object> getVerificationCode() {
//        return iVerificationCodeService.getArithmeticCaptcha();
        return iVerificationCodeService.getSpecCaptcha();
    }

}
